<%@ page language="java" import="java.util.*,Bean.User" pageEncoding="utf-8"%>
<html>
  <head>
   	<title>学生信息管理系统</title>
   	<style type="text/css">
   		a{
   			text-decoration: none;
   			color: white;
   		}
   	</style>
  </head>
  
  <body background="${pageContext.request.contextPath}/image/index.png" style=" background-repeat:no-repeat ;background-size:100% 100%;
		background-attachment: fixed;">
  	<%
 		String username = (String)session.getAttribute("username"); 
 		Integer count_index=0,count_login=0;
 		if(username==null){
			out.println("<script>alert('无法直接访问该页面，请先登录！');window.location.href='/stu_info_manage_sys/login.jsp'</script>");		
 		}else{
 		 count_index = (Integer)application.getAttribute("count_index");//统计访问该页面的人数
 		if(count_index == null){
 			count_index = new Integer(0);
 		}
 		count_index++;
 		application.setAttribute("count_index", count_index);
		 count_login = (Integer)application.getAttribute("count_login");
 		}
 		
  	 %>
  	 <span><font>您是该页面的第<%=count_index%>个访问者  </span><br><br>
  	<h1 style="margin:20px auto; color: black;" align="center">欢迎<%=username%>来到学生信息管理系统</h1>
  	<p align="center"><span style="color: black;"><font size="4">您是本系统的第<%=count_login%>个访问者</font></span></p><br>
  	<hr>
  	<br>
  	<br>
  	<p align="center"><a href="/stu_info_manage_sys/servlet/ShowAllStudentServlet" > <font  size="5">学生信息管理</font></a></p>
  	<br>
  	<p align="center"><a href="/stu_info_manage_sys/servlet/ShowAllCourseServlet"><font  size="5">课程信息管理</font></a></p>
  	<br>
  	<p align="center"><a href="/stu_info_manage_sys/servlet/ShowAllScoreServlet"><font  size="5">成绩信息管理</font></a></p>
  	<br>
  	<p align="center"><a href="/stu_info_manage_sys/servlet/ShowAllUserServlet"><font  size="5">用户信息管理</font></a></p>
  	<br>
  	<p align="center"> <a href="/stu_info_manage_sys/servlet/ExitServlet"><font  size="5">退出系统</font></a> </p>
  </body>
</html>
  	